package Tz1;

import Tz.Dive;

public class Test {
    public void service(Bird bird){
       bird.fly();

    }
    public void service1(SuperMan superMan){
      superMan.fly();

    }
    public void service2(Plane plane){
        plane.fly();

    }

    public static void main(String[] args) {
        Test test=new Test();
        test.service(new Bird("小鸟",10));
        test.service1(new SuperMan("超人",20));
        test.service2(new Plane("飞机",10));
    }


}
